package com.daodway.designpattern.mediatorpattern.wide;

public class User {
    private String userId;
    private String userName;
    
    /**
     * 人员离职
     * @return
     */
    public boolean dimission(){
              DepUserMediatorImpl mediator = DepUserMediatorImpl.getInstance();
              mediator.deleteUser(userId);
              return true;
   }

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
    
    
}
